package abstracts;

/**
 * All rights Reserved, Designed By www.tusdao.com
 *
 * @version V1.0
 * @Title: Employee
 * @Package myTest
 * @Description: TODO(一句话描述类是干嘛的)
 * @author: tusxxw
 * @date: 2021/1/5
 * @Copyright: 2020 www.tbs.com Inc. All rights reserved.
 * <p>
 * 注意：本内容仅限于TBS项目组内部传阅，禁止外泄以及用于其他的商业目的
 */
public class Employee extends Student {

    //构造方法
    public Employee(String id, String name, String major) {
        super(id, name, major);
    }

    //实现抽象方法
    @Override
    public void setPlace(String place) {
        this.place = place;
    }

    //实现抽象方法
    @Override
    public void setMoney(Double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", major='" + major + '\'' +
                ", place='" + place + '\'' +
                ", money=" + money +
                '}';
    }
}
